#ifndef CLIENT_H
#define CLIENT_H

#include <QWidget>
#include "udpthread.h"
#include <QFile>

namespace Ui {
class client;
}

class client : public QWidget
{
    Q_OBJECT

public:
    explicit client(QWidget *parent = nullptr);
    ~client();

private slots:
    void slotRecv_client(char *buf, int len);

private:
    Ui::client *ui;
    udpthread *m_udpThread;
    QFile file;
    qint64 filesize;
    QString filename;
};

#endif // CLIENT_H
